/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lab8;


public abstract class Nod {
    protected Nod fStang;
    protected Nod fDrept;
    protected double x;

    public Nod getfDrept() {
        return fDrept;
    }

    public void setfDrept(Nod fDrept) {
        this.fDrept = fDrept;
    }

    public Nod getfStang() {
        return fStang;
    }

    public void setfStang(Nod fStang) {
        this.fStang = fStang;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
        this.fStang.setX(x);
         this.fDrept.setX(x);
    }
    public abstract double calcul();
    
    public abstract String derivare();
    
    public abstract double calculDerivata();
    
    public abstract String toString();
    
}
